#include <stdio.h>

int main() {

    int a ;
    int n=0;
    scanf("%d",&a);
    while((n+1)*7<=a){
        n++; 
    }
printf("%d days are %d weeks and %d days\n",a,n,a-(n*7));
    return 0;
}